package com.coding.mybatis;

import lombok.AllArgsConstructor;

/**
 * @ClassName DefaultSqlSessionFactory
 * @Author ykx
 * @Date 2023/12/31 18:33
 * @Version 1.0
 */
@AllArgsConstructor
public class DefaultSqlSessionFactory implements SqlSessionFactory {

    private Configuration configuration;

    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession(configuration);
    }
}
